<?php

namespace exphp;

$exConfigDir = PathOperations::getExPath() . 'helper' . DIRECTORY_SEPARATOR;
require_once $exConfigDir . 'FileOperations.php';
require_once $exConfigDir . 'FormatProcess.php';
require_once $exConfigDir . 'Output.php';
require_once $exConfigDir . 'RequestNetwork.php';
require_once $exConfigDir . 'CharProcess.php';

$debugFile = PathOperations::getProjectPath('/runtime/debug' . $_SERVER['REQUEST_URI']);
if (is_file($debugFile)) {
    FileOperations::$fileType = 'json';
    $debugArray = FileOperations::readFileToArray($debugFile);
    require dirname(__DIR__) . '/error.php';
}
